<%@ page contentType="text/html; charset=utf-8"%>

<%@ include file="/WEB-INF/jsp/includeTaglib.jsp"%>

<table class="dbborder" width="100%" border="0" cellpadding="0" cellspacing="1">
	<tr class="rowHead">
		<td height="20" width="60%" nowrap align="center" class="globalTextBold">备忘内容</td>
		<td height="20" width="20%" nowrap align="center" class="globalTextBold">终端名称</td>
		<td height="20" width="20%" nowrap align="center" class="globalTextBold">操作</td>
	</tr>
	<c:forEach var="memo" items="${page.data}" varStatus="status">
		<tr class="rowClass">
			<td height="20" class="globalText">${memo.content}</td>
			<td height="20" class="globalText">${memo.channel.name}</td>
			<td height="20" class="globalText">
				<input type="button" class="btnStyle" value="删除"
				onclick="javascript:delMemo('${memo.id}')">
			</td>
		</tr>
	</c:forEach>
</table>

<%@ include file="/WEB-INF/jsp/includePagination.jsp"%>

<script>
	function delMemo(memoId){
		if(confirm('确定删除?')){
			window.location="<c:url value='/plan/removeMemo.html?memoId='/>"+memoId;
		}
	}
</script>
